package com.qiyang.contoller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created on 2020/12/11.
 *
 * @author qiyang.
 * 描述：
 */
@Controller
@RequestMapping("exception2")
public class ExceptionController2 {

    /**
     * 演示全局异常处理
     * @return
     */
    @GetMapping("test")
    public String test(@RequestParam("name")String name) {
        System.out.println("演示全局异常处理");
        return "show";
    }
}
